<?php
/**
 * Created by PhpStorm.
 * User: Wang YuLong
 * Date: 2018/11/7
 * Time: 17:05
 */
namespace app\index\model;

use think\Model;

class Readmin extends Model
{
//    protected $resultSetType = 'collection';
    public function index()
    {
        $readmin = new Readmin();
        $data = $readmin->alias('a')->join('admin b','a.adminid=b.id','left')->order('a.id desc')->select();

        /*
        foreach($data as $key)
        {
            $info[]=$key->toArray();
        }*/
        return $data;
    }
}